﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TB_WS.Class.Json_Class
{
    public class DingTalk_Department
    {
        /// <summary>
        /// Examples: [{"autoAddUser":true,"createDeptGroup":true,"id":1,"name":"南京乐士淘网络技术有限公司"},{"autoAddUser":false,"createDeptGroup":false,"id":1012019,"name":"钉钉管理员","parentid":1},{"autoAddUser":false,"createDeptGroup":false,"id":10227632,"name":"客服","parentid":1},{"autoAddUser":false,"createDeptGroup":false,"id":10227633,"name":"仓采部门","parentid":1},{"autoAddUser":false,"createDeptGroup":false,"id":10248828,"name":"实习同学","parentid":1},{"autoAddUser":false,"createDeptGroup":false,"id":23539924,"name":"推送组","parentid":1},{"autoAddUser":true,"createDeptGroup":true,"id":23539925,"name":"改价推送","parentid":23539924}]
        /// </summary>
        public IList<Department> department { get; set; }

        /// <summary>
        /// Examples: 0
        /// </summary>
        public int errcode { get; set; }

        /// <summary>
        /// Examples: "ok"
        /// </summary>
        public string errmsg { get; set; }
    }
    public class Department
    {

        /// <summary>
        /// Examples: true, false
        /// </summary>
        public bool autoAddUser { get; set; }

        /// <summary>
        /// Examples: true, false
        /// </summary>
        public bool createDeptGroup { get; set; }

        /// <summary>
        /// Examples: 1, 1012019, 10227632, 10227633, 10248828
        /// </summary>
        public int id { get; set; }

        /// <summary>
        /// Examples: "南京乐士淘网络技术有限公司", "钉钉管理员", "客服", "仓采部门", "实习同学"
        /// </summary>
        public string name { get; set; }

        /// <summary>
        /// Examples: 1, 23539924
        /// </summary>
        public int? parentid { get; set; }
    }
}
